package com.itheima.a02args;

public class ArgsDemo1 {
    public static void main(String[] args) {
        //熟悉Args,可变参数
        getSum(1,2,3,4,5);

        System.out.println(getSum(1, 2, 3, 4, 5, 6, 7, 8, 9));

    }

    public static int getSum(int...i) {
        System.out.println(i);
        return 0;
    }
}
